package com.wanmait.heatingrepair.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;

/**
* Created by Mybatis Generator 2021/05/11
*/
@Data
@TableName(value = "refund")
public class Refund implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 原因
     */
    @TableField(value = "reason")
    private String reason;

    /**
     * 退款金额
     */
    @TableField(value = "amount")
    private Integer amount;

    /**
     * 关联订单
     */
    @TableField(value = "ordersinfo_id")
    private Integer ordersinfoId;
    @TableField(exist = false)
    private Ordersinfo ordersinfo;

    @TableLogic
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_REASON = "reason";

    public static final String COL_AMOUNT = "amount";

    public static final String COL_ORDERSINFO_ID = "ordersinfo_id";

    public static final String COL_ENABLE = "enable";
}